<?php

function add_category($name) {
	$query = "INSERT INTO `category` (name) VALUES ('$name')";
	notifier::add($query, "debug");
	notifier::add("Category successfully added, please refresh page", "success"); 
	mysql_query($query) or die ( mysql_error() );
}

function add_link($title, $url, $category, $description) {
	$query = "INSERT INTO `links` (title, url, category_id, description) VALUES ('$title', '$url', '$category', '$description')";
	//notifier::add($query, "debug");	
	mysql_query($query) or die ( mysql_error() );	
}

?>